package com.yyplatform.frontend.platform.account.entity;

import com.yyplatform.frontend.infra.entity.BaseEntity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

/**
 * Created on 2024-10-17
 */
@Entity
@Getter
@Setter
@Table(name = "yy_user")
public class UserEntity extends BaseEntity {


    @Column(name = "nickname", nullable = false, columnDefinition = " varchar(200) comment '昵称' ")
    private String nickname;

    @Column(name = "face_url", nullable = false, columnDefinition = " varchar(200) comment '昵称' ")
    private String faceUrl;

    @Column(name = "user_name", nullable = false, columnDefinition = " varchar(50) comment '用户名称' ")
    private String userName;


    @Column(name = "phone", nullable = false, columnDefinition = " varchar(200) comment '手机号码' ")
    private String phone;


    @Column(name = "email", nullable = false, columnDefinition = " varchar(200) comment '邮箱' ")
    private String email;

    @Column(name = "gender", nullable = false, columnDefinition = "int(10) comment '性别' ")
    private int gender;


    @Column(name = "enabled", nullable = false, columnDefinition = "int(10) comment '是否有效' ")
    private Boolean enabled;


    @Column(name = "country", columnDefinition = " varchar(200) comment '国家' ")
    private String country;

    @Column(name = "province", columnDefinition = " varchar(200) comment '省份' ")
    private String province;

    @Column(name = "city", columnDefinition = " varchar(200) comment '城市' ")
    private String city;

    @Column(name = "language", columnDefinition = " varchar(200) comment '语言' ")
    private String language;

    @Column(name = "remark", columnDefinition = " varchar(200) comment '备注' ")
    private String remark;



}
